package com.ggg.clothesshop.mapper;

import com.ggg.clothesshop.model.Product;
import org.apache.ibatis.annotations.Param;

import java.util.ArrayList;
import java.util.List;

public interface ProductMapper {
    Integer deleteByPrimaryKey(Integer productid);

    Integer insert(Product record);

    Integer insertSelective(Product record);

    Product selectByPrimaryKey(Integer productid);

    Integer updateByPrimaryKeySelective(Product record);

    ArrayList<Product> selectProducts(@Param("attribute") String attribute, @Param("array")List array);

    ArrayList<Product> selectCountProduct(@Param("keyWord") String keyWord, @Param("keyType")String keyType, @Param("start")Integer start, @Param("size")Integer size);

    Integer selectPageProduct(@Param("keyWord") String keyWord, @Param("keyType")String keyType);
}